#ifndef MYWIDGET_H
#define MYWIDGET_H

#include <QApplication>
#include <QLabel>
#include <QFont>
#include <QLCDNumber>
#include <QPushButton>
#include <QSlider>
#include <QVBoxLayout>
#include <QWidget>
#include <QMenu>
#include <QDialog>
// #include <QMessageBox>
#include <QRadioButton>
#include <QDialog>
#include <QLabel>
#include <QScrollArea>
#include <QPushButton>

#include <aknglobalmsgquery.h>
#include <e32base.h>
#include <e32std.h>

#include "common.h"

// StartBackup enumerate command codes
enum TStartBackupIds
        {
        EDisableSMS = 0x0000,
        ECopySMS = 0x0001,
        ERestoreSMS = 0x0002
        };

class MyWidget : public QWidget
{
    Q_OBJECT

public:
    MyWidget(QWidget *parent = 0);
    ~MyWidget();
    void information(const QString &title = "", const QString &mess = "");
	/* Symbian C++ Code */
    void ListDrive();
public:
    QString GetButtonSS();
	/* Symbian C++ Code */
    TPtrC GetAppDrive(const TUid aUidApp);
private:
    QString buttonstylesheet;
    QString labelstylesheet;
    QString mystring;
    QString aboutstring;
private:
    void SetBackgroundImage();
    void enableAll();
    void showbase();
    void WriteOnFileL(QString filename, QString text);
    void InitializeComponentL();
    void FirstBoot();
	/* Symbian C++ Code */
    TInt ShowPopup(const TDesC& aMsgText, const TDesC& aHeaderText, TInt aSoftkeys = R_AVKON_SOFTKEYS_CLOSE);
    // void Restart();
private:
    QLabel *label;
    QScrollArea *scroll;
    QPushButton *okButton;
    QLabel *labelaction;
    QLabel *statusQT;
    QLabel *aboutme;
    QPushButton *activate;
    QPushButton *deactivate;
    QPushButton *restore;
    QPushButton *settings;
    QPushButton *help;
    QPushButton *hide;
    QPushButton *quit;
    // QVBoxLayout *layout;
    QGridLayout *layout;
    QMenu* menu;
    QAction* options;
    QAction* exit;
private:    
    QString Version();
    QString BootCopyPath();
    QString BootCopySMSPath();
    QString ReadOnFileL(QString filename);
    void resizeEvent (QResizeEvent* event);
private slots:
	void setActive();
	void setDeActive();
	void setRestore();
    void writelabel();
    void globalhelp();
    void mysettings();
    void closeApp();
public slots:
	void check();
};

#endif // MYWIDGET_H
